package com.fengmi.goods.controller;


import com.fengmi.comm.ResultVO;
import com.fengmi.goods.MallGoodsSku;
import com.fengmi.goods.service.IMallGoodsSkuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 商品表 前端控制器
 * </p>
 *
 * @author sujie
 * @since 2022-11-26
 */
@RestController
@RequestMapping("/goods/mall-goods-sku")
public class MallGoodsSkuController {
    @Autowired
    private IMallGoodsSkuService iMallGoodsSkuService;
    @RequestMapping("getSkuById")
    public MallGoodsSku  getSkuById(Integer skuId){
        return  iMallGoodsSkuService.getById(skuId);
    }
    @RequestMapping("kcc")
    public ResultVO kcc(Integer skuId, Integer buyNum) {
        return  iMallGoodsSkuService.kcc(skuId,buyNum);
    }
}
